﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// ACS (American Community Survey) District Summary Report STO
	/// </summary>
    [DataContract]
    public class ACSDistrictSummaryReportSTO
    {
		//Todo: local variables are declared public??
		/// <summary>
		/// List of ACSDistrictSummaryDataDTO objects declared.
		/// </summary>
		public List<ACSDistrictSummaryDataDTO> _dataSummary;
		/// <summary>
		/// Backing field for error message.
		/// </summary>
        public string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="ACSDistrictSummaryReportSTO"/> class.
		/// </summary>
        public ACSDistrictSummaryReportSTO()
        {
            _dataSummary = new List<ACSDistrictSummaryDataDTO>();
            _errorMessage = "";
        }

		/// <summary>
		/// Gets or sets the data summary.
		/// </summary>
		/// <value>The data summary.</value>
        [DataMember]
        public List<ACSDistrictSummaryDataDTO> dataSummary
        {
            get { return _dataSummary; }
            set { _dataSummary = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }
    }
}
